package io.renren.modules.app.dao;
import io.renren.modules.app.entity.TZnmhAppVersion;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TZnmhAppVersionDao{
	/**
	 * 获得TZnmhAppVersion数据的总行数
	 * @return
	 */
    long getTZnmhAppVersionRowCount();
	/**
	 * 获得TZnmhAppVersion数据集合
	 * @return
	 */
    List<TZnmhAppVersion> selectTZnmhAppVersion();
	/**
	 * 获得一个TZnmhAppVersion对象,以参数TZnmhAppVersion对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    TZnmhAppVersion selectTZnmhAppVersionByObj(TZnmhAppVersion obj);
	/**
	 * 通过TZnmhAppVersion的id获得TZnmhAppVersion对象
	 * @param id
	 * @return
	 */
    TZnmhAppVersion selectTZnmhAppVersionById(String id);
	/**
	 * 插入TZnmhAppVersion到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersion(TZnmhAppVersion value);
	/**
	 * 插入TZnmhAppVersion中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyTZnmhAppVersion(TZnmhAppVersion value);
	/**
	 * 批量插入TZnmhAppVersion到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertTZnmhAppVersionByBatch(List<TZnmhAppVersion> value);
	/**
	 * 通过TZnmhAppVersion的id删除TZnmhAppVersion
	 * @param id
	 * @return
	 */
    int deleteTZnmhAppVersionById(String id);
	/**
	 * 通过TZnmhAppVersion的id更新TZnmhAppVersion中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateTZnmhAppVersionById(TZnmhAppVersion enti);
	/**
	 * 通过TZnmhAppVersion的id更新TZnmhAppVersion中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyTZnmhAppVersionById(TZnmhAppVersion enti);

	List<TZnmhAppVersion> getAllTZnmhAppVersion();

	List<TZnmhAppVersion> getAllVersionRole();
}